import axios from 'axios';

let base = '';
let url = 'http://ca.wanpinhui.tech/api';

// 登录
export const requestLogin = params => { return axios.post(`${url}/a1/login`, params).then(res => res.data); };

//项目列表
export const getProjectList = params => { return axios.get(`${url}/a1/project`, { params: params }).then(res => res.data); };

// export const getProjectList = params => { return axios.get(`${url}/a1/project`, params).then(res => res.data); };

// export const getUserListPage = params => { return axios.get(`${base}/user/listpage`, { params: params }); };

// export const removeUser = params => { return axios.get(`${base}/user/remove`, { params: params }); };

// export const batchRemoveUser = params => { return axios.get(`${base}/user/batchremove`, { params: params }); };

// export const editUser = params => { return axios.get(`${base}/user/edit`, { params: params }); };

// export const addUser = params => { return axios.get(`${base}/user/add`, { params: params }); };